/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Map.java
 *
 * Created on May 14, 2011, 4:41:02 PM
 */

/**
 *
 * @author CHAOS
 */
import java.awt.*;

public class Map extends javax.swing.JFrame {
    static boolean RO1Enabled,RO2Enabled,RO5Enabled,RO6Enabled=false;
    static boolean RO3Enabled,RO4Enabled,RO7Enabled,RO8Enabled=false;
    static boolean[] ROMoved={false,false,false,false,false,false,false,false};
    static boolean[] ROAttacked={false,false,false,false,false,false,false,false};
    static boolean isPrivate=false;
    // static boolean[] RDMoved={false,false,false,false};
    static int wallWidth=50;
    static int wallHeight=70;
    static boolean moveEnabled,attackEnabled,buildEnabled;
    static boolean upgradeDone=false, buildDone = false;
    static String ip,playerName;
    static Game game;
    static Network network;
    static int[][] attackerGrid,ourGrid,defenderGrid;
    /** Creates new form Map */
    public Map() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        ConnectWindow = new javax.swing.JFrame();
        IP = new javax.swing.JTextField();
        IPLabel = new javax.swing.JLabel();
        NameLabel = new javax.swing.JLabel();
        Name = new javax.swing.JTextField();
        OkButton = new javax.swing.JButton();
        test = new javax.swing.JLabel();
        buttonGroup1 = new javax.swing.ButtonGroup();
        time = new javax.swing.JLabel();
        turn = new javax.swing.JLabel();
        chatLabel = new javax.swing.JLabel();
        map = new javax.swing.JPanel();
        RO1 = new javax.swing.JLabel();
        RO1Selected = new javax.swing.JLabel();
        RO2 = new javax.swing.JLabel();
        RO2Selected = new javax.swing.JLabel();
        RO3 = new javax.swing.JLabel();
        RO3Selected = new javax.swing.JLabel();
        RO4 = new javax.swing.JLabel();
        RO4Selected = new javax.swing.JLabel();
        RO5 = new javax.swing.JLabel();
        RO5Selected = new javax.swing.JLabel();
        RO6 = new javax.swing.JLabel();
        RO6Selected = new javax.swing.JLabel();
        RO7 = new javax.swing.JLabel();
        RO7Selected = new javax.swing.JLabel();
        RO8 = new javax.swing.JLabel();
        RO8Selected = new javax.swing.JLabel();
        RF1 = new javax.swing.JLabel();
        RF2 = new javax.swing.JLabel();
        RF3 = new javax.swing.JLabel();
        RF4 = new javax.swing.JLabel();
        RD1_1 = new javax.swing.JLabel();
        RD1_2 = new javax.swing.JLabel();
        RD1_3 = new javax.swing.JLabel();
        RD1_4 = new javax.swing.JLabel();
        RD1_5 = new javax.swing.JLabel();
        RD1_6 = new javax.swing.JLabel();
        RD1_7 = new javax.swing.JLabel();
        RD1_8 = new javax.swing.JLabel();
        RD2_1 = new javax.swing.JLabel();
        RD2_2 = new javax.swing.JLabel();
        RD2_3 = new javax.swing.JLabel();
        RD2_4 = new javax.swing.JLabel();
        AU1 = new javax.swing.JLabel();
        AU2 = new javax.swing.JLabel();
        AU3 = new javax.swing.JLabel();
        AU4 = new javax.swing.JLabel();
        AU5 = new javax.swing.JLabel();
        AU6 = new javax.swing.JLabel();
        AU7 = new javax.swing.JLabel();
        AU8 = new javax.swing.JLabel();
        AU9 = new javax.swing.JLabel();
        AU10 = new javax.swing.JLabel();
        AU11 = new javax.swing.JLabel();
        AU12 = new javax.swing.JLabel();
        AU13 = new javax.swing.JLabel();
        AU14 = new javax.swing.JLabel();
        AU15 = new javax.swing.JLabel();
        WU1 = new javax.swing.JLabel();
        WU2 = new javax.swing.JLabel();
        WU3 = new javax.swing.JLabel();
        WU4 = new javax.swing.JLabel();
        WU5 = new javax.swing.JLabel();
        WU6 = new javax.swing.JLabel();
        WU7 = new javax.swing.JLabel();
        WU8 = new javax.swing.JLabel();
        WU9 = new javax.swing.JLabel();
        WU10 = new javax.swing.JLabel();
        WU11 = new javax.swing.JLabel();
        WU12 = new javax.swing.JLabel();
        WU13 = new javax.swing.JLabel();
        WU14 = new javax.swing.JLabel();
        WU15 = new javax.swing.JLabel();
        DU1 = new javax.swing.JLabel();
        DU2 = new javax.swing.JLabel();
        DU3 = new javax.swing.JLabel();
        DU4 = new javax.swing.JLabel();
        DU5 = new javax.swing.JLabel();
        DU6 = new javax.swing.JLabel();
        DU7 = new javax.swing.JLabel();
        DU8 = new javax.swing.JLabel();
        DU9 = new javax.swing.JLabel();
        DU10 = new javax.swing.JLabel();
        DU11 = new javax.swing.JLabel();
        DU12 = new javax.swing.JLabel();
        DU13 = new javax.swing.JLabel();
        DU14 = new javax.swing.JLabel();
        DU15 = new javax.swing.JLabel();
        DD1 = new javax.swing.JLabel();
        DD2 = new javax.swing.JLabel();
        DD3 = new javax.swing.JLabel();
        DD4 = new javax.swing.JLabel();
        DD5 = new javax.swing.JLabel();
        DD6 = new javax.swing.JLabel();
        DD7 = new javax.swing.JLabel();
        DD8 = new javax.swing.JLabel();
        DD9 = new javax.swing.JLabel();
        DD10 = new javax.swing.JLabel();
        DD11 = new javax.swing.JLabel();
        DD12 = new javax.swing.JLabel();
        DD13 = new javax.swing.JLabel();
        DD14 = new javax.swing.JLabel();
        DD15 = new javax.swing.JLabel();
        WD1 = new javax.swing.JLabel();
        WD2 = new javax.swing.JLabel();
        WD3 = new javax.swing.JLabel();
        WD4 = new javax.swing.JLabel();
        WD5 = new javax.swing.JLabel();
        WD6 = new javax.swing.JLabel();
        WD7 = new javax.swing.JLabel();
        WD8 = new javax.swing.JLabel();
        WD9 = new javax.swing.JLabel();
        WD10 = new javax.swing.JLabel();
        WD11 = new javax.swing.JLabel();
        WD12 = new javax.swing.JLabel();
        WD13 = new javax.swing.JLabel();
        WD14 = new javax.swing.JLabel();
        WD15 = new javax.swing.JLabel();
        AD1 = new javax.swing.JLabel();
        AD2 = new javax.swing.JLabel();
        AD3 = new javax.swing.JLabel();
        AD4 = new javax.swing.JLabel();
        AD5 = new javax.swing.JLabel();
        AD6 = new javax.swing.JLabel();
        AD7 = new javax.swing.JLabel();
        AD8 = new javax.swing.JLabel();
        AD9 = new javax.swing.JLabel();
        AD10 = new javax.swing.JLabel();
        AD11 = new javax.swing.JLabel();
        AD12 = new javax.swing.JLabel();
        AD13 = new javax.swing.JLabel();
        AD14 = new javax.swing.JLabel();
        AD15 = new javax.swing.JLabel();
        LayerWU1 = new javax.swing.JLabel();
        LayerWU2 = new javax.swing.JLabel();
        LayerWU3 = new javax.swing.JLabel();
        LayerWU4 = new javax.swing.JLabel();
        LayerWU5 = new javax.swing.JLabel();
        LayerWU6 = new javax.swing.JLabel();
        LayerWU7 = new javax.swing.JLabel();
        LayerWU8 = new javax.swing.JLabel();
        LayerWU9 = new javax.swing.JLabel();
        LayerWU10 = new javax.swing.JLabel();
        LayerWU11 = new javax.swing.JLabel();
        LayerWU12 = new javax.swing.JLabel();
        LayerWU13 = new javax.swing.JLabel();
        LayerWU14 = new javax.swing.JLabel();
        LayerWU15 = new javax.swing.JLabel();
        LayerWD1 = new javax.swing.JLabel();
        LayerWD2 = new javax.swing.JLabel();
        LayerWD3 = new javax.swing.JLabel();
        LayerWD4 = new javax.swing.JLabel();
        LayerWD5 = new javax.swing.JLabel();
        LayerWD6 = new javax.swing.JLabel();
        LayerWD7 = new javax.swing.JLabel();
        LayerWD8 = new javax.swing.JLabel();
        LayerWD9 = new javax.swing.JLabel();
        LayerWD10 = new javax.swing.JLabel();
        LayerWD11 = new javax.swing.JLabel();
        LayerWD12 = new javax.swing.JLabel();
        LayerWD13 = new javax.swing.JLabel();
        LayerWD14 = new javax.swing.JLabel();
        LayerWD15 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        MoveButton = new javax.swing.JButton();
        AttackButton = new javax.swing.JButton();
        BuildButton = new javax.swing.JButton();
        UpgradePowerButton = new javax.swing.JButton();
        UpgradeSpeedButton = new javax.swing.JButton();
        UpgradeRangeButton = new javax.swing.JButton();
        EndTurnButton = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        ChatBox = new javax.swing.JTextArea();
        gold = new javax.swing.JLabel();
        message = new javax.swing.JTextField();
        SendButton = new javax.swing.JButton();
        StatsLabel = new javax.swing.JLabel();
        Stats = new javax.swing.JPanel();
        PowerLabel = new javax.swing.JLabel();
        RangeLabel = new javax.swing.JLabel();
        SpeedLabel = new javax.swing.JLabel();
        Power = new javax.swing.JLabel();
        Speed = new javax.swing.JLabel();
        Range = new javax.swing.JLabel();
        Notification = new javax.swing.JLabel();
        Private = new javax.swing.JRadioButton();
        Public = new javax.swing.JRadioButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        File = new javax.swing.JMenu();
        Connect = new javax.swing.JMenuItem();
        Exit = new javax.swing.JMenuItem();
        Help = new javax.swing.JMenu();
        AboutItem = new javax.swing.JMenuItem();

        ConnectWindow.setMinimumSize(new java.awt.Dimension(360, 230));

        IPLabel.setText("Enter IP address");

        NameLabel.setText("Enter your name");

        OkButton.setText("OK");
        OkButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                OkButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout ConnectWindowLayout = new javax.swing.GroupLayout(ConnectWindow.getContentPane());
        ConnectWindow.getContentPane().setLayout(ConnectWindowLayout);
        ConnectWindowLayout.setHorizontalGroup(
            ConnectWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ConnectWindowLayout.createSequentialGroup()
                .addGroup(ConnectWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(ConnectWindowLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(OkButton, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, ConnectWindowLayout.createSequentialGroup()
                        .addGap(46, 46, 46)
                        .addGroup(ConnectWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(ConnectWindowLayout.createSequentialGroup()
                                .addComponent(NameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(Name, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(ConnectWindowLayout.createSequentialGroup()
                                .addComponent(IPLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(IP, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(test, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(91, Short.MAX_VALUE))
        );
        ConnectWindowLayout.setVerticalGroup(
            ConnectWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ConnectWindowLayout.createSequentialGroup()
                .addGap(51, 51, 51)
                .addGroup(ConnectWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(IPLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(IP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(ConnectWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(NameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(ConnectWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(ConnectWindowLayout.createSequentialGroup()
                        .addGap(49, 49, 49)
                        .addComponent(OkButton))
                    .addGroup(ConnectWindowLayout.createSequentialGroup()
                        .addGap(24, 24, 24)
                        .addComponent(test, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(119, Short.MAX_VALUE))
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(1024, 800));
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowOpened(java.awt.event.WindowEvent evt) {
                formWindowOpened(evt);
            }
        });
        getContentPane().setLayout(null);

        time.setFont(new java.awt.Font("Calibri", 1, 11));
        time.setText("Time : 0:00");
        getContentPane().add(time);
        time.setBounds(40, 10, 64, 14);

        turn.setFont(new java.awt.Font("Calibri", 1, 11)); // NOI18N
        turn.setText("Turn : 1");
        getContentPane().add(turn);
        turn.setBounds(360, 10, 64, 14);

        chatLabel.setFont(new java.awt.Font("Calibri", 1, 24));
        chatLabel.setText("Chat");
        getContentPane().add(chatLabel);
        chatLabel.setBounds(850, 10, 60, 30);

        map.setMinimumSize(new java.awt.Dimension(760, 430));
        map.setLayout(null);

        RO1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2.gif"))); // NOI18N
        RO1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        RO1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                RO1MouseClicked(evt);
            }
        });
        map.add(RO1);
        RO1.setBounds(210, 10, 50, 70);

        RO1Selected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2Enabled.jpg"))); // NOI18N
        RO1Selected.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RO1Selected);
        RO1Selected.setBounds(210, 10, 50, 70);

        RO2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2.gif"))); // NOI18N
        RO2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        RO2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                RO2MouseClicked(evt);
            }
        });
        map.add(RO2);
        RO2.setBounds(510, 10, 50, 70);

        RO2Selected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2Enabled.jpg"))); // NOI18N
        RO2Selected.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RO2Selected);
        RO2Selected.setBounds(510, 10, 50, 70);

        RO3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2.gif"))); // NOI18N
        RO3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        RO3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                RO3MouseClicked(evt);
            }
        });
        map.add(RO3);
        RO3.setBounds(610, 10, 50, 70);

        RO3Selected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2Enabled.jpg"))); // NOI18N
        RO3Selected.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RO3Selected);
        RO3Selected.setBounds(610, 10, 50, 70);

        RO4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2.gif"))); // NOI18N
        RO4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        RO4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                RO4MouseClicked(evt);
            }
        });
        map.add(RO4);
        RO4.setBounds(660, 10, 50, 70);

        RO4Selected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2Enabled.jpg"))); // NOI18N
        RO4Selected.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RO4Selected);
        RO4Selected.setBounds(660, 10, 50, 70);

        RO5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2.gif"))); // NOI18N
        RO5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        RO5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                RO5MouseClicked(evt);
            }
        });
        map.add(RO5);
        RO5.setBounds(160, 10, 50, 70);

        RO5Selected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2Enabled.jpg"))); // NOI18N
        RO5Selected.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RO5Selected);
        RO5Selected.setBounds(160, 10, 50, 70);

        RO6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2.gif"))); // NOI18N
        RO6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        RO6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                RO6MouseClicked(evt);
            }
        });
        map.add(RO6);
        RO6.setBounds(460, 10, 50, 70);

        RO6Selected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2Enabled.jpg"))); // NOI18N
        RO6Selected.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RO6Selected);
        RO6Selected.setBounds(460, 10, 50, 70);

        RO7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2.gif"))); // NOI18N
        RO7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        RO7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                RO7MouseClicked(evt);
            }
        });
        map.add(RO7);
        RO7.setBounds(560, 10, 50, 70);

        RO7Selected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2Enabled.jpg"))); // NOI18N
        RO7Selected.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RO7Selected);
        RO7Selected.setBounds(560, 10, 50, 70);

        RO8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2.gif"))); // NOI18N
        RO8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        RO8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                RO8MouseClicked(evt);
            }
        });
        map.add(RO8);
        RO8.setBounds(410, 10, 50, 70);

        RO8Selected.setIcon(new javax.swing.ImageIcon(getClass().getResource("/robot2Enabled.jpg"))); // NOI18N
        RO8Selected.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RO8Selected);
        RO8Selected.setBounds(410, 10, 50, 70);

        RF1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/attacker2.jpg"))); // NOI18N
        RF1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RF1);
        RF1.setBounds(160, 360, 50, 70);

        RF2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/attacker2.jpg"))); // NOI18N
        RF2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RF2);
        RF2.setBounds(560, 360, 50, 70);

        RF3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/attacker2.jpg"))); // NOI18N
        RF3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RF3);
        RF3.setBounds(660, 360, 50, 70);

        RF4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/attacker2.jpg"))); // NOI18N
        RF4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RF4);
        RF4.setBounds(710, 360, 50, 70);

        RD1_1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender1.jpg"))); // NOI18N
        RD1_1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD1_1);
        RD1_1.setBounds(110, 150, 50, 70);

        RD1_2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender1.jpg"))); // NOI18N
        RD1_2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD1_2);
        RD1_2.setBounds(110, 150, 50, 70);

        RD1_3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender1.jpg"))); // NOI18N
        RD1_3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD1_3);
        RD1_3.setBounds(110, 150, 50, 70);

        RD1_4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender1.jpg"))); // NOI18N
        RD1_4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD1_4);
        RD1_4.setBounds(110, 150, 50, 70);

        RD1_5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender1.jpg"))); // NOI18N
        RD1_5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD1_5);
        RD1_5.setBounds(110, 150, 50, 70);

        RD1_6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender1.jpg"))); // NOI18N
        RD1_6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD1_6);
        RD1_6.setBounds(110, 150, 50, 70);

        RD1_7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender1.jpg"))); // NOI18N
        RD1_7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD1_7);
        RD1_7.setBounds(110, 150, 50, 70);

        RD1_8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender1.jpg"))); // NOI18N
        RD1_8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD1_8);
        RD1_8.setBounds(110, 150, 50, 70);

        RD2_1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender2.jpg"))); // NOI18N
        RD2_1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD2_1);
        RD2_1.setBounds(510, 220, 50, 70);

        RD2_2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender2.jpg"))); // NOI18N
        RD2_2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD2_2);
        RD2_2.setBounds(510, 220, 50, 70);

        RD2_3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender2.jpg"))); // NOI18N
        RD2_3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD2_3);
        RD2_3.setBounds(510, 220, 50, 70);

        RD2_4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/defender2.jpg"))); // NOI18N
        RD2_4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(RD2_4);
        RD2_4.setBounds(510, 220, 50, 70);

        AU1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU1);
        AU1.setBounds(10, 10, 50, 70);

        AU2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU2);
        AU2.setBounds(60, 10, 50, 70);

        AU3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU3);
        AU3.setBounds(110, 10, 50, 70);

        AU4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU4);
        AU4.setBounds(160, 10, 50, 70);

        AU5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU5);
        AU5.setBounds(210, 10, 50, 70);

        AU6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU6);
        AU6.setBounds(260, 10, 50, 70);

        AU7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU7);
        AU7.setBounds(410, 10, 50, 70);

        AU8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU8);
        AU8.setBounds(460, 10, 50, 70);

        AU9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU9);
        AU9.setBounds(310, 10, 50, 70);

        AU10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU10);
        AU10.setBounds(360, 10, 50, 70);

        AU11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU11);
        AU11.setBounds(510, 10, 50, 70);

        AU12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU12);
        AU12.setBounds(660, 10, 50, 70);

        AU13.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU13);
        AU13.setBounds(710, 10, 50, 70);

        AU14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU14);
        AU14.setBounds(560, 10, 50, 70);

        AU15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AU15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AU15);
        AU15.setBounds(610, 10, 50, 70);

        WU1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        WU1.setForeground(new java.awt.Color(255, 255, 0));
        WU1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU1.setText("100");
        WU1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU1);
        WU1.setBounds(10, 80, 50, 70);

        WU2.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU2.setForeground(new java.awt.Color(255, 255, 0));
        WU2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU2);
        WU2.setBounds(60, 80, 50, 70);

        WU3.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU3.setForeground(new java.awt.Color(255, 255, 0));
        WU3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU3);
        WU3.setBounds(110, 80, 50, 70);

        WU4.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU4.setForeground(new java.awt.Color(255, 255, 0));
        WU4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU4);
        WU4.setBounds(160, 80, 50, 70);

        WU5.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU5.setForeground(new java.awt.Color(255, 255, 0));
        WU5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU5);
        WU5.setBounds(210, 80, 50, 70);

        WU6.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU6.setForeground(new java.awt.Color(255, 255, 0));
        WU6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU6);
        WU6.setBounds(460, 80, 50, 70);

        WU7.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU7.setForeground(new java.awt.Color(255, 255, 0));
        WU7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU7);
        WU7.setBounds(410, 80, 50, 70);

        WU8.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU8.setForeground(new java.awt.Color(255, 255, 0));
        WU8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU8);
        WU8.setBounds(260, 80, 50, 70);

        WU9.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU9.setForeground(new java.awt.Color(255, 255, 0));
        WU9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU9);
        WU9.setBounds(310, 80, 50, 70);

        WU10.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU10.setForeground(new java.awt.Color(255, 255, 0));
        WU10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU10);
        WU10.setBounds(360, 80, 50, 70);

        WU11.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU11.setForeground(new java.awt.Color(255, 255, 0));
        WU11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU11);
        WU11.setBounds(710, 80, 50, 70);

        WU12.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU12.setForeground(new java.awt.Color(255, 255, 0));
        WU12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU12);
        WU12.setBounds(660, 80, 50, 70);

        WU13.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU13.setForeground(new java.awt.Color(255, 255, 0));
        WU13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU13.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU13);
        WU13.setBounds(510, 80, 50, 70);

        WU14.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU14.setForeground(new java.awt.Color(255, 255, 0));
        WU14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU14);
        WU14.setBounds(560, 80, 50, 70);

        WU15.setFont(new java.awt.Font("Tahoma", 1, 18));
        WU15.setForeground(new java.awt.Color(255, 255, 0));
        WU15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WU15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WU15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WU1MouseClicked(evt);
            }
        });
        map.add(WU15);
        WU15.setBounds(610, 80, 50, 70);

        DU1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU1);
        DU1.setBounds(10, 150, 50, 70);

        DU2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU2);
        DU2.setBounds(60, 150, 50, 70);

        DU3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU3);
        DU3.setBounds(110, 150, 50, 70);

        DU4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU4);
        DU4.setBounds(160, 150, 50, 70);

        DU5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU5);
        DU5.setBounds(210, 150, 50, 70);

        DU6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU6);
        DU6.setBounds(460, 150, 50, 70);

        DU7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU7);
        DU7.setBounds(410, 150, 50, 70);

        DU8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU8);
        DU8.setBounds(360, 150, 50, 70);

        DU9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU9);
        DU9.setBounds(310, 150, 50, 70);

        DU10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU10);
        DU10.setBounds(260, 150, 50, 70);

        DU11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU11);
        DU11.setBounds(710, 150, 50, 70);

        DU12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU12);
        DU12.setBounds(660, 150, 50, 70);

        DU13.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU13);
        DU13.setBounds(610, 150, 50, 70);

        DU14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU14);
        DU14.setBounds(560, 150, 50, 70);

        DU15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DU15);
        DU15.setBounds(510, 150, 50, 70);

        DD1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD1);
        DD1.setBounds(10, 220, 50, 70);

        DD2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD2);
        DD2.setBounds(60, 220, 50, 70);

        DD3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD3);
        DD3.setBounds(110, 220, 50, 70);

        DD4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD4);
        DD4.setBounds(160, 220, 50, 70);

        DD5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD5);
        DD5.setBounds(210, 220, 50, 70);

        DD6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD6);
        DD6.setBounds(460, 220, 50, 70);

        DD7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD7);
        DD7.setBounds(360, 220, 50, 70);

        DD8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD8);
        DD8.setBounds(410, 220, 50, 70);

        DD9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD9);
        DD9.setBounds(260, 220, 50, 70);

        DD10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD10);
        DD10.setBounds(310, 220, 50, 70);

        DD11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD11);
        DD11.setBounds(710, 220, 50, 70);

        DD12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD12);
        DD12.setBounds(610, 220, 50, 70);

        DD13.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD13);
        DD13.setBounds(660, 220, 50, 70);

        DD14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD14);
        DD14.setBounds(510, 220, 50, 70);

        DD15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(DD15);
        DD15.setBounds(560, 220, 50, 70);

        WD1.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD1.setForeground(new java.awt.Color(255, 255, 0));
        WD1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
                WU1MouseClicked(evt);
            }
        });
        map.add(WD1);
        WD1.setBounds(10, 290, 50, 70);

        WD2.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD2.setForeground(new java.awt.Color(255, 255, 0));
        WD2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD2);
        WD2.setBounds(60, 290, 50, 70);

        WD3.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD3.setForeground(new java.awt.Color(255, 255, 0));
        WD3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD3);
        WD3.setBounds(110, 290, 50, 70);

        WD4.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD4.setForeground(new java.awt.Color(255, 255, 0));
        WD4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD4);
        WD4.setBounds(160, 290, 50, 70);

        WD5.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD5.setForeground(new java.awt.Color(255, 255, 0));
        WD5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD5);
        WD5.setBounds(210, 290, 50, 70);

        WD6.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD6.setForeground(new java.awt.Color(255, 255, 0));
        WD6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD6);
        WD6.setBounds(460, 290, 50, 70);

        WD7.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD7.setForeground(new java.awt.Color(255, 255, 0));
        WD7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD7);
        WD7.setBounds(410, 290, 50, 70);

        WD8.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD8.setForeground(new java.awt.Color(255, 255, 0));
        WD8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD8);
        WD8.setBounds(260, 290, 50, 70);

        WD9.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD9.setForeground(new java.awt.Color(255, 255, 0));
        WD9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD9);
        WD9.setBounds(310, 290, 50, 70);

        WD10.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD10.setForeground(new java.awt.Color(255, 255, 0));
        WD10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD10);
        WD10.setBounds(360, 290, 50, 70);

        WD11.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD11.setForeground(new java.awt.Color(255, 255, 0));
        WD11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD11);
        WD11.setBounds(710, 290, 50, 70);

        WD12.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD12.setForeground(new java.awt.Color(255, 255, 0));
        WD12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD12);
        WD12.setBounds(660, 290, 50, 70);

        WD13.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD13.setForeground(new java.awt.Color(255, 255, 0));
        WD13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD13.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD13);
        WD13.setBounds(510, 290, 50, 70);

        WD14.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD14.setForeground(new java.awt.Color(255, 255, 0));
        WD14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD14);
        WD14.setBounds(560, 290, 50, 70);

        WD15.setFont(new java.awt.Font("Tahoma", 1, 24));
        WD15.setForeground(new java.awt.Color(255, 255, 0));
        WD15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/wallSample7.jpg"))); // NOI18N
        WD15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        WD15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                WD2MouseClicked(evt);
            }
        });
        map.add(WD15);
        WD15.setBounds(610, 290, 50, 70);

        AD1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD1);
        AD1.setBounds(10, 360, 50, 70);

        AD2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD2);
        AD2.setBounds(60, 360, 50, 70);

        AD3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD3);
        AD3.setBounds(110, 360, 50, 70);

        AD4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD4);
        AD4.setBounds(160, 360, 50, 70);

        AD5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD5);
        AD5.setBounds(210, 360, 50, 70);

        AD6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD6);
        AD6.setBounds(260, 360, 50, 70);

        AD7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD7);
        AD7.setBounds(410, 360, 50, 70);

        AD8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD8);
        AD8.setBounds(460, 360, 50, 70);

        AD9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD9);
        AD9.setBounds(310, 360, 50, 70);

        AD10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD10);
        AD10.setBounds(360, 360, 50, 70);

        AD11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD11);
        AD11.setBounds(510, 360, 50, 70);

        AD12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD12);
        AD12.setBounds(660, 360, 50, 70);

        AD13.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD13);
        AD13.setBounds(710, 360, 50, 70);

        AD14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD14);
        AD14.setBounds(560, 360, 50, 70);

        AD15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        AD15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AU1MouseClicked(evt);
            }
        });
        map.add(AD15);
        AD15.setBounds(610, 360, 50, 70);

        LayerWU1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU1);
        LayerWU1.setBounds(10, 80, 50, 70);

        LayerWU2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU2);
        LayerWU2.setBounds(60, 80, 50, 70);

        LayerWU3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU3);
        LayerWU3.setBounds(110, 80, 50, 70);

        LayerWU4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU4);
        LayerWU4.setBounds(160, 80, 50, 70);

        LayerWU5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU5);
        LayerWU5.setBounds(210, 80, 50, 70);

        LayerWU6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU6);
        LayerWU6.setBounds(460, 80, 50, 70);

        LayerWU7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU7);
        LayerWU7.setBounds(410, 80, 50, 70);

        LayerWU8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU8);
        LayerWU8.setBounds(260, 80, 50, 70);

        LayerWU9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU9);
        LayerWU9.setBounds(310, 80, 50, 70);

        LayerWU10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU10);
        LayerWU10.setBounds(360, 80, 50, 70);

        LayerWU11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU11);
        LayerWU11.setBounds(710, 80, 50, 70);

        LayerWU12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU12);
        LayerWU12.setBounds(660, 80, 50, 70);

        LayerWU13.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU13);
        LayerWU13.setBounds(510, 80, 50, 70);

        LayerWU14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU14);
        LayerWU14.setBounds(560, 80, 50, 70);

        LayerWU15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWU15);
        LayerWU15.setBounds(610, 80, 50, 70);

        LayerWD1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD1);
        LayerWD1.setBounds(10, 290, 50, 70);

        LayerWD2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD2);
        LayerWD2.setBounds(60, 290, 50, 70);

        LayerWD3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD3);
        LayerWD3.setBounds(110, 290, 50, 70);

        LayerWD4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD4);
        LayerWD4.setBounds(160, 290, 50, 70);

        LayerWD5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD5);
        LayerWD5.setBounds(210, 290, 50, 70);

        LayerWD6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD6);
        LayerWD6.setBounds(460, 290, 50, 70);

        LayerWD7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD7);
        LayerWD7.setBounds(410, 290, 50, 70);

        LayerWD8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD8);
        LayerWD8.setBounds(260, 290, 50, 70);

        LayerWD9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD9);
        LayerWD9.setBounds(310, 290, 50, 70);

        LayerWD10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD10);
        LayerWD10.setBounds(360, 290, 50, 70);

        LayerWD11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD11);
        LayerWD11.setBounds(710, 290, 50, 70);

        LayerWD12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD12);
        LayerWD12.setBounds(660, 290, 50, 70);

        LayerWD13.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD13);
        LayerWD13.setBounds(510, 290, 50, 70);

        LayerWD14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD14);
        LayerWD14.setBounds(560, 290, 50, 70);

        LayerWD15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        map.add(LayerWD15);
        LayerWD15.setBounds(610, 290, 50, 70);

        getContentPane().add(map);
        map.setBounds(0, 30, 765, 435);
        getContentPane().add(jSeparator1);
        jSeparator1.setBounds(10, 468, 750, 10);

        MoveButton.setLabel("Move");
        MoveButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MoveButtonActionPerformed(evt);
            }
        });
        getContentPane().add(MoveButton);
        MoveButton.setBounds(10, 490, 130, 20);

        AttackButton.setLabel("Attack");
        AttackButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AttackButtonActionPerformed(evt);
            }
        });
        getContentPane().add(AttackButton);
        AttackButton.setBounds(150, 490, 130, 20);

        BuildButton.setLabel("Build");
        BuildButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BuildButtonActionPerformed(evt);
            }
        });
        getContentPane().add(BuildButton);
        BuildButton.setBounds(290, 490, 130, 20);

        UpgradePowerButton.setLabel("Upgrade Power");
        UpgradePowerButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UpgradePowerButtonActionPerformed(evt);
            }
        });
        getContentPane().add(UpgradePowerButton);
        UpgradePowerButton.setBounds(10, 540, 130, 20);

        UpgradeSpeedButton.setLabel("Upgrade Speed");
        UpgradeSpeedButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UpgradeSpeedButtonActionPerformed(evt);
            }
        });
        getContentPane().add(UpgradeSpeedButton);
        UpgradeSpeedButton.setBounds(150, 540, 130, 20);

        UpgradeRangeButton.setLabel("Upgrade Range");
        UpgradeRangeButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UpgradeRangeButtonActionPerformed(evt);
            }
        });
        getContentPane().add(UpgradeRangeButton);
        UpgradeRangeButton.setBounds(290, 540, 130, 20);

        EndTurnButton.setText("End Turn");
        EndTurnButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EndTurnButtonActionPerformed(evt);
            }
        });
        getContentPane().add(EndTurnButton);
        EndTurnButton.setBounds(430, 490, 100, 70);

        ChatBox.setColumns(20);
        ChatBox.setEditable(false);
        ChatBox.setRows(5);
        jScrollPane1.setViewportView(ChatBox);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(770, 40, 230, 420);

        gold.setFont(new java.awt.Font("Calibri", 1, 11)); // NOI18N
        gold.setText("Gold :  0");
        getContentPane().add(gold);
        gold.setBounds(690, 10, 64, 14);
        getContentPane().add(message);
        message.setBounds(770, 480, 230, 20);

        SendButton.setText("Send");
        SendButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SendButtonActionPerformed(evt);
            }
        });
        getContentPane().add(SendButton);
        SendButton.setBounds(687, 480, 70, 23);

        StatsLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        StatsLabel.setText("Stats");
        getContentPane().add(StatsLabel);
        StatsLabel.setBounds(570, 470, 50, 20);

        Stats.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        PowerLabel.setText("Power");

        RangeLabel.setText("Speed");

        SpeedLabel.setText("Range");

        javax.swing.GroupLayout StatsLayout = new javax.swing.GroupLayout(Stats);
        Stats.setLayout(StatsLayout);
        StatsLayout.setHorizontalGroup(
            StatsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(StatsLayout.createSequentialGroup()
                .addGroup(StatsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(StatsLayout.createSequentialGroup()
                        .addComponent(SpeedLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(RangeLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(StatsLayout.createSequentialGroup()
                        .addComponent(PowerLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGroup(StatsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(Range, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)
                    .addGroup(StatsLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Power, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE))
                    .addComponent(Speed, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE))
                .addContainerGap())
        );
        StatsLayout.setVerticalGroup(
            StatsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(StatsLayout.createSequentialGroup()
                .addGroup(StatsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(PowerLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Power, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(StatsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(RangeLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Speed, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(StatsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(SpeedLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Range, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(17, Short.MAX_VALUE))
        );

        getContentPane().add(Stats);
        Stats.setBounds(540, 490, 100, 100);

        Notification.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        getContentPane().add(Notification);
        Notification.setBounds(20, 590, 420, 50);

        buttonGroup1.add(Private);
        Private.setSelected(true);
        Private.setText("Private");
        Private.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                PrivateItemStateChanged(evt);
            }
        });
        getContentPane().add(Private);
        Private.setBounds(900, 510, 120, 23);

        buttonGroup1.add(Public);
        Public.setText("Public");
        Public.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                PublicItemStateChanged(evt);
            }
        });
        getContentPane().add(Public);
        Public.setBounds(770, 510, 120, 23);

        File.setText("File");

        Connect.setText("Connect");
        Connect.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ConnectActionPerformed(evt);
            }
        });
        File.add(Connect);

        Exit.setLabel("Exit");
        File.add(Exit);

        jMenuBar1.add(File);

        Help.setLabel("Help");

        AboutItem.setActionCommand("About");
        AboutItem.setLabel("About");
        Help.add(AboutItem);

        jMenuBar1.add(Help);

        setJMenuBar(jMenuBar1);

        pack();
    }// </editor-fold>//GEN-END:initComponents
    private void reswitchPlayer(String robot){
        //if another robot is enabled turn it off
        //player1
        if (RO1Enabled && "RO1"!=robot){
            RO1Enabled=false;
            RO1.setVisible(!RO1Enabled);
        }
        if (RO2Enabled && "RO2"!=robot){
            RO2Enabled=false;
            RO2.setVisible(!RO2Enabled);
        }
        if (RO3Enabled && "RO3"!=robot){
            RO3Enabled=false;
            RO3.setVisible(!RO3Enabled);
        }
        if (RO4Enabled && "RO4"!=robot){
            RO4Enabled=false;
            RO4.setVisible(!RO4Enabled);
        }

         if (RO5Enabled && "RO5"!=robot){
            RO5Enabled=false;
            RO5.setVisible(!RO5Enabled);
        }
        if (RO6Enabled && "RO6"!=robot){
            RO6Enabled=false;
            RO6.setVisible(!RO6Enabled);
        }
        if (RO7Enabled && "RO7"!=robot){
            RO7Enabled=false;
            RO7.setVisible(!RO7Enabled);
        }
        if (RO8Enabled && "RO8"!=robot){
            RO8Enabled=false;
            RO8.setVisible(!RO8Enabled);
        }
        // turn on clicked robot
        //player 1
       if ("RO1"==robot){
                RO1Enabled=true;
                RO1.setVisible(!RO1Enabled);
                }else
       if ("RO2"==robot){
                RO2Enabled=true;
                RO2.setVisible(!RO2Enabled);
                } else
       if ("RO3"==robot){
                RO3Enabled=true;
                RO3.setVisible(!RO3Enabled);
                } else
       if ("RO4"==robot){
                RO4Enabled=true;
                RO4.setVisible(!RO4Enabled);
                } else
       if ("RO5"==robot){
                RO5Enabled=true;
                RO5.setVisible(!RO5Enabled);
                }else
       if ("RO6"==robot){
                RO6Enabled=true;
                RO6.setVisible(!RO6Enabled);
                } else
       if ("RO7"==robot){
                RO7Enabled=true;
                RO7.setVisible(!RO7Enabled);
                }else
       if ("RO8"==robot){
                RO8Enabled=true;
                RO8.setVisible(!RO8Enabled);
                }
        
    }

   
    private void updateStats(int i){
        Power.setText(Integer.toString(game.get_OurRobots(i).get_power()));
        Speed.setText(Integer.toString(game.get_OurRobots(i).get_speed()));
        Range.setText(Integer.toString(game.get_OurRobots(i).get_range()));


    }

     private void disableStats(){
        Power.setText("");
        Speed.setText("");
        Range.setText("");


    }

    private void RO1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_RO1MouseClicked
        reswitchPlayer("RO1");
        updateStats(0);
    }//GEN-LAST:event_RO1MouseClicked

    private void RO2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_RO2MouseClicked
        reswitchPlayer("RO2");
        updateStats(1);
    }//GEN-LAST:event_RO2MouseClicked

    private void MoveButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MoveButtonActionPerformed
        moveEnabled=true;
    }//GEN-LAST:event_MoveButtonActionPerformed


    private void AttackButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AttackButtonActionPerformed
        if (moveEnabled) moveEnabled=false;
        attackEnabled=true;
    }//GEN-LAST:event_AttackButtonActionPerformed

    private void BuildButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuildButtonActionPerformed
        if (moveEnabled) moveEnabled=false;
            buildEnabled=true;

        //if (game.buyRobot(WIDTH, WIDTH))
    }//GEN-LAST:event_BuildButtonActionPerformed

    private void handleUpgradePower(java.awt.event.ActionEvent evt){
        if (!upgradeDone){
            if (RO1Enabled ){
                if (game.upgradePower(0))
                {

                //send server
                //bool canMove=Game.move(1,x,y);
                    upgradeDone=true;
                    updateStats(0);
                }
            }else
            if (RO2Enabled ){
                if (game.upgradePower(1))
                {
                  upgradeDone=true;
                  updateStats(1);
                }
            }else
            if (RO3Enabled ){
                if (game.upgradePower(2))
                {
                   upgradeDone=true;
                   updateStats(2);
                }
            } else
            if (RO4Enabled ){
                if (game.upgradePower(3))
                {
                   upgradeDone=true;
                   updateStats(3);
                }
            } else
                if (RO5Enabled ){
                    System.out.println("upgrade power robot 5");
                if (game.upgradePower(4))
                {
                   
                   upgradeDone=true;
                   updateStats(4);
                }
            } else
                if (RO6Enabled ){
                if (game.upgradePower(5))
                {
                   upgradeDone=true;
                   updateStats(5);
                }
            } else
                if (RO7Enabled ){
                if (game.upgradePower(6))
                {
                   upgradeDone=true;
                   updateStats(6);
                }
            } else
                if (RO8Enabled ){
                if (game.upgradePower(7))
                {
                   upgradeDone=true;
                   updateStats(7);
                }
            }
        } else notify(" Upgrade is already done!!! ");

        gold.setText("Gold: " + Integer.toString(game.get_gold()));
    }

    private void handleUpgradeSpeed(java.awt.event.ActionEvent evt){
        if (!upgradeDone){
            if (RO1Enabled ){
                if (game.upgradeSpeed(0))
                {

                    upgradeDone=true;
                    updateStats(0);
                }
            }else
            if (RO2Enabled ){
                if (game.upgradeSpeed(1))
                {
                  upgradeDone=true;
                  updateStats(1);
                }
            }else
            if (RO3Enabled ){
                if (game.upgradeSpeed(2))
                {
                   upgradeDone=true;
                   updateStats(2);
                }
            } else
            if (RO4Enabled ){
                if (game.upgradeSpeed(3))
                {
                   upgradeDone=true;
                   updateStats(3);
                }
            } else
                if (RO5Enabled ){
                if (game.upgradeSpeed(4))
                {
                   upgradeDone=true;
                   updateStats(4);
                }
            } else
                if (RO6Enabled ){
                if (game.upgradeSpeed(5))
                {
                   upgradeDone=true;
                   updateStats(5);
                }
            } else
                if (RO7Enabled ){
                if (game.upgradeSpeed(6))
                {
                   upgradeDone=true;
                   updateStats(6);
                }
            } else
                if (RO8Enabled ){
                if (game.upgradeSpeed(7))
                {
                   upgradeDone=true;
                   updateStats(7);
                }
            }
        } else notify(" Upgrade is already done!!! ");
        gold.setText("Gold: " + Integer.toString(game.get_gold()));
    }

    private void handleUpgradeRange(java.awt.event.ActionEvent evt){
        if (!upgradeDone){
            if (RO1Enabled ){
                if (game.upgradeRange(0))
                {

                    upgradeDone=true;
                    updateStats(0);
                }
            }else
            if (RO2Enabled ){
                if (game.upgradeRange(1))
                {
                  upgradeDone=true;
                  updateStats(1);
                }
            }else
            if (RO3Enabled ){
                if (game.upgradeRange(2))
                {
                   upgradeDone=true;
                   updateStats(2);
                }
            } else
            if (RO4Enabled ){
                if (game.upgradeRange(3))
                {
                   upgradeDone=true;
                   updateStats(3);
                }
            } else
                if (RO5Enabled ){
                if (game.upgradeRange(4))
                {
                   upgradeDone=true;
                   updateStats(4);
                }
            } else
                if (RO6Enabled ){
                if (game.upgradeRange(5))
                {
                   upgradeDone=true;
                   updateStats(5);
                }
            } else
                if (RO7Enabled ){
                if (game.upgradeRange(6))
                {
                   upgradeDone=true;
                   updateStats(6);
                }
            } else
                if (RO8Enabled ){
                if (game.upgradeRange(7))
                {
                   upgradeDone=true;
                   updateStats(7);
                }
            }
        }else notify(" Upgrade is already done!!! ");
        gold.setText("Gold: " + Integer.toString(game.get_gold()));
    }



    private void UpgradePowerButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_UpgradePowerButtonActionPerformed
        handleUpgradePower(evt);

    }//GEN-LAST:event_UpgradePowerButtonActionPerformed

    private void UpgradeSpeedButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_UpgradeSpeedButtonActionPerformed
        handleUpgradeSpeed(evt);
    }//GEN-LAST:event_UpgradeSpeedButtonActionPerformed

    private void UpgradeRangeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_UpgradeRangeButtonActionPerformed
        handleUpgradeRange(evt);
    }//GEN-LAST:event_UpgradeRangeButtonActionPerformed

    private void RO3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_RO3MouseClicked
        reswitchPlayer("RO3");
        updateStats(2);
    }//GEN-LAST:event_RO3MouseClicked

    private void RO4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_RO4MouseClicked
        reswitchPlayer("RO4");
        updateStats(3);
    }//GEN-LAST:event_RO4MouseClicked

    static public void setAttackerGrid(int x,int y, int type,int robotNum){
        attackerGrid[x][y]=type;
        if (type==1){
            ourGrid[x][y]=robotNum;
        }

    }

    private int YToScreen(int y){
        int result;
        if (y==0) result=y*wallHeight+10;else
        result=y*wallHeight+290;
        return result;
    }


    private int YToScreenDef(int y){
        int result=0;
        if (y==0) result=2;else
            if (y==1) result=3;

        result=result*wallHeight+10;
       return result;
    }

    public void updateOurRobots(){
         OurRobot robot;
         disableStats();
         // update our robots
        gold.setText("Gold: " + Integer.toString(game.get_gold()));
        if((robot = game.get_OurRobots(0)) == null) {
            RO1.setVisible(false);
            RO1Selected.setVisible(false);

        }
        else {
            RO1.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RO1.setVisible(true);
            RO1Selected.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO1Selected.setVisible(true);
        }

        if((robot = game.get_OurRobots(1)) == null) {
            RO2.setVisible(false);
            RO2Selected.setVisible(false);
        }
        else {
            RO2.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO2.setVisible(true);
            RO2Selected.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO2Selected.setVisible(true);
        }

        if((robot = game.get_OurRobots(2)) == null) {
            RO3.setVisible(false);
            RO3Selected.setVisible(false);
        }
        else {
            RO3.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO3.setVisible(true);
            RO3Selected.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO3Selected.setVisible(true);
        }
        if((robot = game.get_OurRobots(3)) == null) {
            RO4.setVisible(false);
            RO4Selected.setVisible(false);
        }
        else {
            RO4.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO4.setVisible(true);
            RO4Selected.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO4Selected.setVisible(true);
        }
        if((robot = game.get_OurRobots(4)) == null) {
            RO5.setVisible(false);
            RO5Selected.setVisible(false);
        }
        else {
            RO5.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO5.setVisible(true);
            RO5Selected.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO5Selected.setVisible(true);
        }

        if((robot = game.get_OurRobots(5)) == null) {
            RO6.setVisible(false);
            RO6Selected.setVisible(false);
        }
        else {
            RO6.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO6.setVisible(true);
            RO6Selected.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO6Selected.setVisible(true);
        }

        if((robot = game.get_OurRobots(6)) == null) {
            RO7.setVisible(false);
            RO7Selected.setVisible(false);
        }
        else {
            RO7.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO7.setVisible(true);
            RO7Selected.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO7Selected.setVisible(true);
        }

        if((robot = game.get_OurRobots(7)) == null) {
            RO8.setVisible(false);
            RO8Selected.setVisible(false);
        }
        else {
            RO8.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO8.setVisible(true);
            RO8Selected.setLocation(robot.get_posY()*wallWidth+10, YToScreen(robot.get_posX()));
            RO8Selected.setVisible(true);
        }

    }

    public void notify(String s){
        Notification.setText(s);
        
    }

    public void addToChat(String ID,String Message){
        ChatBox.setText(ChatBox.getText()+"\n"+"<"+ID+">: "+Message);


    }

    public void startTurn() {
        turn.setText("Turn: "+Integer.toString(game.get_turn()));
        MoveButton.setEnabled(true);
        AttackButton.setEnabled(true);
        BuildButton.setEnabled(true);
        UpgradePowerButton.setEnabled(true);
        UpgradeSpeedButton.setEnabled(true);
        UpgradeRangeButton.setEnabled(true);
        EndTurnButton.setEnabled(true);
        moveEnabled = false;
        attackEnabled = false;
        buildEnabled = false;
        RO1Enabled = false;
        RO2Enabled = false;
        RO3Enabled = false;
        RO4Enabled = false;
        RO5Enabled = false;
        RO6Enabled = false;
        RO7Enabled = false;
        RO8Enabled = false;
        updateOurRobots();
    }

    public void finishTurn() {
       
        for(int i = 0; i<ROMoved.length; i++) {
            ROMoved[i] = false;
            ROAttacked[i] = false;
        }
        upgradeDone = false;
        buildDone = false;
        moveEnabled = false;
        attackEnabled = false;
        buildEnabled = false;
        RO1Enabled = false;
        RO2Enabled = false;
        RO3Enabled = false;
        RO4Enabled = false;
        RO5Enabled = false;
        RO6Enabled=false;
        RO7Enabled = false;
        RO8Enabled = false;
        MoveButton.setEnabled(false);
        AttackButton.setEnabled(false);
        BuildButton.setEnabled(false);
        UpgradePowerButton.setEnabled(false);
        UpgradeSpeedButton.setEnabled(false);
        UpgradeRangeButton.setEnabled(false);
        EndTurnButton.setEnabled(false);
        updateOurRobots();
    }
    
    public void updateScreen(){
        System.out.println("Updating screen");
        
         //update partner robots
         FriendRobot partner;
         gold.setText("Gold: " + Integer.toString(game.get_gold()));
         if((partner = game.get_PartnerRobot(0)) == null) {
            RF1.setVisible(false);


        }
        else {
            RF1.setLocation(partner.get_posY()*wallWidth+10, YToScreen(partner.get_posX()));
            System.out.println("Robot 1 is at: "+(partner.get_posY()*wallWidth+10)+" y :"+ YToScreen(partner.get_posX()));
            RF1.setVisible(true);

        }

       if((partner = game.get_PartnerRobot(1)) == null) {
            RF2.setVisible(false);


        }
        else {
            RF2.setLocation(partner.get_posY()*wallWidth+10, YToScreen(partner.get_posX()));
            System.out.println("Robot 1 is at: "+(partner.get_posY()*wallWidth+10)+" y :"+ YToScreen(partner.get_posX()));
            RF2.setVisible(true);

        }

         if((partner = game.get_PartnerRobot(2)) == null) {
            RF3.setVisible(false);


        }
        else {
            RF3.setLocation(partner.get_posY()*wallWidth+10, YToScreen(partner.get_posX()));
            System.out.println("Robot 1 is at: "+(partner.get_posY()*wallWidth+10)+" y :"+ YToScreen(partner.get_posX()));
            RF3.setVisible(true);

        }

         if((partner = game.get_PartnerRobot(3)) == null) {
            RF4.setVisible(false);


        }
        else {
            RF4.setLocation(partner.get_posY()*wallWidth+10, YToScreen(partner.get_posX()));
            System.out.println("Robot 1 is at: "+(partner.get_posY()*wallWidth+10)+" y :"+ YToScreen(partner.get_posX()));
            RF4.setVisible(true);

        }

         Defender_Robot  defender;

         if((defender = game.get_Def1Robots(0)) == null) {
            RD1_1.setVisible(false);


        }
        else {
            RD1_1.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
            System.out.println("Defender1 Robot 1 is at: "+(defender.get_posY()*wallWidth+10)+" y :"+ YToScreen(defender.get_posX()));
            RD1_1.setVisible(true);

        }

         if((defender = game.get_Def1Robots(1)) == null) {
            RD1_2.setVisible(false);


        }
        else {
            RD1_2.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
            System.out.println("Robot 1 is at: "+(defender.get_posY()*wallWidth+10)+" y :"+ YToScreen(defender.get_posX()));
            RD1_2.setVisible(true);

        }

         if((defender = game.get_Def1Robots(2)) == null) {
            RD1_3.setVisible(false);


        }
        else {
            RD1_3.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
            //System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RD1_3.setVisible(true);

        }

         if((defender = game.get_Def1Robots(3)) == null) {
            RD1_4.setVisible(false);


        }
        else {
            RD1_4.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
            //System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RD1_4.setVisible(true);

        }

         if((defender = game.get_Def1Robots(4)) == null) {
            RD1_5.setVisible(false);


        }
        else {
            System.out.println("Building robot 5 at x : "+defender.get_posY()+" y :"+defender.get_posX());
            RD1_5.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
            //System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RD1_5.setVisible(true);

        }

         if((defender = game.get_Def1Robots(5)) == null) {
            RD1_6.setVisible(false);


        }
        else {
            RD1_6.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
            //System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RD1_6.setVisible(true);

        }

         if((defender = game.get_Def1Robots(6)) == null) {
            RD1_7.setVisible(false);


        }
        else {
            RD1_7.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
           // System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RD1_7.setVisible(true);

        }


         if((defender = game.get_Def1Robots(7)) == null) {
            RD1_8.setVisible(false);


        }
        else {
            RD1_8.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
            //System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RD1_8.setVisible(true);

        }
         
         //   defender 2

         if((defender = game.get_Def2Robots(0)) == null) {
            RD2_1.setVisible(false);


        }
        else {
            RD2_1.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
           //System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RD2_1.setVisible(true);

        }

         if((defender = game.get_Def2Robots(1)) == null) {
            RD2_2.setVisible(false);


        }
        else {
            RD2_2.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
            //System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RD2_2.setVisible(true);

        }

         if((defender = game.get_Def2Robots(2)) == null) {
            RD2_3.setVisible(false);


        }
        else {
            RD2_3.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
            //System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RD2_3.setVisible(true);

        }

         if((defender = game.get_Def2Robots(3)) == null) {
            RD2_4.setVisible(false);


        }
        else {
            RD2_4.setLocation(defender.get_posY()*wallWidth+10, YToScreenDef(defender.get_posX()));
            //System.out.println("Robot 1 is at: "+(robot.get_posY()*wallWidth+10)+" y :"+ YToScreen(robot.get_posX()));
            RD2_4.setVisible(true);

        }
        updateWalls();

    }

    private void updateWalls(){
        if(game.get_wallSections(0) == null)
            return;
        Graphics g=getGraphics();

        for (int i=0;i<15;i++){
            g.setColor(Color.red);
            g.fillRect(30+50*i, 180, 25, 15);
            g.clearRect(30+50*i, 170, 25, 15);

         g.drawString(Integer.toString(game.get_wallSections(i).get_health()), 30+50*i, 180);


        }

        for (int i=0;i<15;i++){
            g.setColor(Color.red);
            g.fillRect(30+50*i, 400, 25, 15);
            g.clearRect(30+50*i, 390, 25, 15);
         g.drawString(Integer.toString(game.get_wallSections(i + 15).get_health()), 30+50*i, 400);
            System.out.println(game.get_wallSections(i + 15).get_health());
        }

        /*
        WU1.setText(Integer.toString(game.get_wallSections(0).get_health()));
        WU2.setText(Integer.toString(game.get_wallSections(1).get_health()));
        WU3.setText(Integer.toString(game.get_wallSections(2).get_health()));
        WU4.setText(Integer.toString(game.get_wallSections(3).get_health()));
        WU5.setText(Integer.toString(game.get_wallSections(4).get_health()));
        WU6.setText(Integer.toString(game.get_wallSections(5).get_health()));
        WU7.setText(Integer.toString(game.get_wallSections(6).get_health()));
        WU8.setText(Integer.toString(game.get_wallSections(7).get_health()));
        WU9.setText(Integer.toString(game.get_wallSections(8).get_health()));
        WU10.setText(Integer.toString(game.get_wallSections(9).get_health()));
        WU11.setText(Integer.toString(game.get_wallSections(10).get_health()));
        WU12.setText(Integer.toString(game.get_wallSections(11).get_health()));
        WU13.setText(Integer.toString(game.get_wallSections(12).get_health()));
        WU14.setText(Integer.toString(game.get_wallSections(13).get_health()));
        WU15.setText(Integer.toString(game.get_wallSections(14).get_health()));
        WD1.setText(Integer.toString(game.get_wallSections(15).get_health()));
        WD2.setText(Integer.toString(game.get_wallSections(16).get_health()));
        WD3.setText(Integer.toString(game.get_wallSections(17).get_health()));
        WD4.setText(Integer.toString(game.get_wallSections(18).get_health()));
        WD5.setText(Integer.toString(game.get_wallSections(19).get_health()));
        WD6.setText(Integer.toString(game.get_wallSections(20).get_health()));
        WD7.setText(Integer.toString(game.get_wallSections(21).get_health()));
        WD8.setText(Integer.toString(game.get_wallSections(22).get_health()));
        WD9.setText(Integer.toString(game.get_wallSections(23).get_health()));
        WD10.setText(Integer.toString(game.get_wallSections(24).get_health()));
        WD11.setText(Integer.toString(game.get_wallSections(25).get_health()));
        WD12.setText(Integer.toString(game.get_wallSections(26).get_health()));
        WD13.setText(Integer.toString(game.get_wallSections(27).get_health()));
        WD14.setText(Integer.toString(game.get_wallSections(28).get_health()));
        WD15.setText(Integer.toString(game.get_wallSections(29).get_health()));

        */


    }
    private void handleMove(java.awt.event.MouseEvent evt){
        if (moveEnabled){
                int x=(evt.getComponent().getX()-10)/wallWidth;
                int y=(evt.getComponent().getY()-10)/wallHeight;
                if (y==5) y=1;
                System.out.println("hadling move");
            if (RO1Enabled && !ROMoved[0]){
                System.out.println("hadling move of robot 1");
                if (game.move(0, y, x))
                {
                    network.move(0, y, x);
                //send server
                //bool canMove=Game.move(1,x,y);
                RO1.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                RO1Selected.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                System.out.println("Robot 1 move to: "+y+" y :"+ x);
                ROMoved[0]=true;
                }
            }else
            if (RO2Enabled && !ROMoved[1]){
                if (game.move(1, y, x))
                {
                    network.move(1, y, x);
                RO2.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                RO2Selected.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                System.out.println("Robot 2 move to: "+y+" y :"+ x);
                ROMoved[1]=true;
                }
            }else
            if (RO3Enabled && !ROMoved[2]){
                if (game.move(2, y, x))
                {
                    network.move(2, y, x);
                RO3.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                RO3Selected.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                System.out.println("Robot 3 move to: "+y+" y :"+ x);
                ROMoved[2]=true;
                }
            }else
            if (RO4Enabled && !ROMoved[3]){
                if (game.move(3, y, x))
                {
                    network.move(3, y, x);
                RO4.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                RO4Selected.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                System.out.println("Robot 4 move to: "+y+" y :"+ x);
                ROMoved[3]=true;
                }
            }

            if (RO5Enabled && !ROMoved[4]){
                //check
                //send server
                //bool canMove=Game.move(1,x,y);
                if (game.move(4, y, x))
                {
                    network.move(4, y, x);
                RO5.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                RO5Selected.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                ROMoved[4]=true;
                }
            }else
            if (RO6Enabled && !ROMoved[5]){
                if (game.move(5, y, x))
                {
                    network.move(5, y, x);
                RO6.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                RO6Selected.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                ROMoved[5]=true;
                }
            }else
            if (RO7Enabled && !ROMoved[6]){
            if (game.move(6, y, x))
                {
                    network.move(6, y, x);
                RO7.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                RO7Selected.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                ROMoved[6]=true;
                }
            }else
            if (RO8Enabled && !ROMoved[7]){
                if (game.move(7, y, x))
                {
                    network.move(7, y, x);
                RO8.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                RO8Selected.setLocation(evt.getComponent().getX(), evt.getComponent().getY());
                ROMoved[7]=true;
                }
            }
               // player2 

               moveEnabled=false;




        }


    }

    private void handleBuild(java.awt.event.MouseEvent evt){
         
         int x=(evt.getComponent().getX()-10)/wallWidth;
         int y=(evt.getComponent().getY()-10)/wallHeight;
         if (y==5) y=1;
         System.out.println("Building at x :"+y+" y :"+x);
         if (game.buyRobot(y, x)) {
             System.out.println("Building robot");
             network.buyRobot(y, x);
             buildDone = true;
         }
         buildEnabled=false;
    }

    private void AU1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AU1MouseClicked
       if (moveEnabled)handleMove(evt); else
           if (buildEnabled) handleBuild(evt);
    }//GEN-LAST:event_AU1MouseClicked

    private void ConnectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ConnectActionPerformed
     ConnectWindow.setVisible(true);

    }//GEN-LAST:event_ConnectActionPerformed

    private void OkButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OkButtonActionPerformed
        /*RO1.setVisible(true);
        RO1Selected.setVisible(true);
        RO2.setVisible(true);
        RO2Selected.setVisible(true);
        RF1.setVisible(true);
        RFSelected1.setVisible(true);
        RF2.setVisible(true);
        RFSelected2.setVisible(true);
        MoveButton.setEnabled(true);
        AttackButton.setEnabled(true);
        BuildButton.setEnabled(true);
        UpgradePowerButton.setEnabled(true);
        UpgradeSpeedButton.setEnabled(true);
        UpgradeRangeButton.setEnabled(true);
        SendButton.setEnabled(true);
        message.setEnabled(true);*/
        ip=IP.getText();
        playerName=Name.getText();
        
       // game.myName = playerName;
        
        network.connect(ip,2005,playerName);
        //network.sendChatMsg(ip, false);
        test.setText(ip);
        ConnectWindow.setVisible(false);
    }//GEN-LAST:event_OkButtonActionPerformed

    private void RO5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_RO5MouseClicked
        reswitchPlayer("RO5");
        updateStats(4);
    }//GEN-LAST:event_RO5MouseClicked

    private void RO6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_RO6MouseClicked
        reswitchPlayer("RO6");
        updateStats(5);
    }//GEN-LAST:event_RO6MouseClicked

    private void RO7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_RO7MouseClicked
        reswitchPlayer("RO7");
        updateStats(6);
    }//GEN-LAST:event_RO7MouseClicked

    private void RO8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_RO8MouseClicked
        reswitchPlayer("RO8");
        updateStats(7);
    }//GEN-LAST:event_RO8MouseClicked

    private void handleAttack(java.awt.event.MouseEvent evt){
        if (attackEnabled){
                int x=(evt.getComponent().getX()-10)/wallWidth;
                int y=(evt.getComponent().getY()-10)/wallHeight;
                if (y==1) y=0;else
                    if (y==4) y=1;

            if (RO1Enabled && !ROAttacked[0]){
                if (game.attack(0, y, x))
                {
                    network.attack(0, y, x);
                //send server
                //bool canMove=Game.move(1,x,y);

                ROAttacked[0]=true;
                }
            }else
            if (RO2Enabled && !ROAttacked[1]){
                if (game.attack(1, y, x))
                {
                    network.attack(1, y, x);

                ROAttacked[1]=true;
                }
            }else
            if (RO3Enabled && !ROAttacked[2]){
                if (game.attack(2, y, x))
                {
                    network.attack(2, y, x);

                ROAttacked[2]=true;
                }
            }else
            if (RO4Enabled && !ROAttacked[3]){
                if (game.attack(3, y, x))
                {
                    network.attack(3, y, x);

                ROAttacked[3]=true;
                }
            }

            if (RO5Enabled && !ROAttacked[4]){
                //check
                //send server
                //bool canMove=Game.move(1,x,y);
                if (game.attack(4, y, x))
                {
                    network.attack(4, y, x);

                ROAttacked[4]=true;
                }
            }else
            if (RO6Enabled && !ROAttacked[5]){
               if (game.attack(5, y, x))
                {
                    network.attack(5, y, x);

                ROAttacked[5]=true;
                }
            }else
            if (RO7Enabled && !ROAttacked[6]){
                 if (game.attack(6, y, x))
                 {
                    network.attack(6, y, x);

                ROAttacked[6]=true;
                }
            }else
            if (RO8Enabled && !ROAttacked[7]){
                if (game.attack(7, y, x))
                {
                    network.attack(7, y, x);

                ROAttacked[7]=true;
                }
            }
               // player2

               attackEnabled=false;}

    }

    private void WU1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_WU1MouseClicked
       handleAttack(evt);
    }//GEN-LAST:event_WU1MouseClicked

    private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
            RO1.setVisible(false);
            RO1Selected.setVisible(false);

            RO2.setVisible(false);
            RO2Selected.setVisible(false);

            RO3.setVisible(false);
            RO3Selected.setVisible(false);

            RO4.setVisible(false);
            RO4Selected.setVisible(false);

            RO5.setVisible(false);
            RO5Selected.setVisible(false);

            RO6.setVisible(false);
            RO6Selected.setVisible(false);

            RO7.setVisible(false);
            RO7Selected.setVisible(false);

            RO8.setVisible(false);
            RO8Selected.setVisible(false);
            RF1.setVisible(false);
            RF2.setVisible(false);
            RF3.setVisible(false);
            RF4.setVisible(false);

            RD1_1.setVisible(false);
            RD1_2.setVisible(false);
            RD1_3.setVisible(false);
            RD1_4.setVisible(false);
            RD1_5.setVisible(false);
            RD1_6.setVisible(false);
            RD1_7.setVisible(false);
            RD1_8.setVisible(false);

            RD2_1.setVisible(false);
            RD2_2.setVisible(false);
            RD2_3.setVisible(false);
            RD2_4.setVisible(false);

        /*WU1.setText("100");
        WU2.setText("100");
        WU3.setText("100");
        WU4.setText("100");
        WU5.setText("100");
        WU6.setText("100");
        WU7.setText("100");
        WU8.setText("100");
        WU9.setText("100");
        WU10.setText("100");
        WU11.setText("100");
        WU12.setText("100");
        WU13.setText("100");
        WU14.setText("100");
        WU15.setText("100");
        WD1.setText("100");
        WD2.setText("100");
        WD3.setText("100");
        WD4.setText("100");
        WD5.setText("100");
        WD6.setText("100");
        WD7.setText("100");
        WD8.setText("100");
        WD9.setText("100");
        WD10.setText("100");
        WD11.setText("100");
        WD12.setText("100");
        WD13.setText("100");
        WD14.setText("100");
        WD15.setText("100");*/
    }//GEN-LAST:event_formWindowOpened

    private void WD2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_WD2MouseClicked
       handleAttack(evt); // TODO add your handling code here:
    }//GEN-LAST:event_WD2MouseClicked

    private void SendButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SendButtonActionPerformed
        if (message.getText()=="")return;
        network.sendChatMsg(message.getText(),isPrivate) ;
        message.setText("");

    }//GEN-LAST:event_SendButtonActionPerformed

    private void PrivateItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_PrivateItemStateChanged
      isPrivate=true;

    }//GEN-LAST:event_PrivateItemStateChanged

    private void PublicItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_PublicItemStateChanged
      isPrivate=false;

    }//GEN-LAST:event_PublicItemStateChanged

    private void EndTurnButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EndTurnButtonActionPerformed
        finishTurn();
        network.endTurn();
    }//GEN-LAST:event_EndTurnButtonActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
         
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                game=new Game();
                network = new Network(game);
                attackerGrid=new int[2][15];
                ourGrid=new int[2][15];
                defenderGrid=new int[2][15];
                god.map.setVisible(true);
                 
            }

        });
        

    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel AD1;
    private javax.swing.JLabel AD10;
    private javax.swing.JLabel AD11;
    private javax.swing.JLabel AD12;
    private javax.swing.JLabel AD13;
    private javax.swing.JLabel AD14;
    private javax.swing.JLabel AD15;
    private javax.swing.JLabel AD2;
    private javax.swing.JLabel AD3;
    private javax.swing.JLabel AD4;
    private javax.swing.JLabel AD5;
    private javax.swing.JLabel AD6;
    private javax.swing.JLabel AD7;
    private javax.swing.JLabel AD8;
    private javax.swing.JLabel AD9;
    private javax.swing.JLabel AU1;
    private javax.swing.JLabel AU10;
    private javax.swing.JLabel AU11;
    private javax.swing.JLabel AU12;
    private javax.swing.JLabel AU13;
    private javax.swing.JLabel AU14;
    private javax.swing.JLabel AU15;
    private javax.swing.JLabel AU2;
    private javax.swing.JLabel AU3;
    private javax.swing.JLabel AU4;
    private javax.swing.JLabel AU5;
    private javax.swing.JLabel AU6;
    private javax.swing.JLabel AU7;
    private javax.swing.JLabel AU8;
    private javax.swing.JLabel AU9;
    private javax.swing.JMenuItem AboutItem;
    private javax.swing.JButton AttackButton;
    private javax.swing.JButton BuildButton;
    private javax.swing.JTextArea ChatBox;
    private javax.swing.JMenuItem Connect;
    private javax.swing.JFrame ConnectWindow;
    private javax.swing.JLabel DD1;
    private javax.swing.JLabel DD10;
    private javax.swing.JLabel DD11;
    private javax.swing.JLabel DD12;
    private javax.swing.JLabel DD13;
    private javax.swing.JLabel DD14;
    private javax.swing.JLabel DD15;
    private javax.swing.JLabel DD2;
    private javax.swing.JLabel DD3;
    private javax.swing.JLabel DD4;
    private javax.swing.JLabel DD5;
    private javax.swing.JLabel DD6;
    private javax.swing.JLabel DD7;
    private javax.swing.JLabel DD8;
    private javax.swing.JLabel DD9;
    private javax.swing.JLabel DU1;
    private javax.swing.JLabel DU10;
    private javax.swing.JLabel DU11;
    private javax.swing.JLabel DU12;
    private javax.swing.JLabel DU13;
    private javax.swing.JLabel DU14;
    private javax.swing.JLabel DU15;
    private javax.swing.JLabel DU2;
    private javax.swing.JLabel DU3;
    private javax.swing.JLabel DU4;
    private javax.swing.JLabel DU5;
    private javax.swing.JLabel DU6;
    private javax.swing.JLabel DU7;
    private javax.swing.JLabel DU8;
    private javax.swing.JLabel DU9;
    private javax.swing.JButton EndTurnButton;
    private javax.swing.JMenuItem Exit;
    private javax.swing.JMenu File;
    private javax.swing.JMenu Help;
    private javax.swing.JTextField IP;
    private javax.swing.JLabel IPLabel;
    private javax.swing.JLabel LayerWD1;
    private javax.swing.JLabel LayerWD10;
    private javax.swing.JLabel LayerWD11;
    private javax.swing.JLabel LayerWD12;
    private javax.swing.JLabel LayerWD13;
    private javax.swing.JLabel LayerWD14;
    private javax.swing.JLabel LayerWD15;
    private javax.swing.JLabel LayerWD2;
    private javax.swing.JLabel LayerWD3;
    private javax.swing.JLabel LayerWD4;
    private javax.swing.JLabel LayerWD5;
    private javax.swing.JLabel LayerWD6;
    private javax.swing.JLabel LayerWD7;
    private javax.swing.JLabel LayerWD8;
    private javax.swing.JLabel LayerWD9;
    private javax.swing.JLabel LayerWU1;
    private javax.swing.JLabel LayerWU10;
    private javax.swing.JLabel LayerWU11;
    private javax.swing.JLabel LayerWU12;
    private javax.swing.JLabel LayerWU13;
    private javax.swing.JLabel LayerWU14;
    private javax.swing.JLabel LayerWU15;
    private javax.swing.JLabel LayerWU2;
    private javax.swing.JLabel LayerWU3;
    private javax.swing.JLabel LayerWU4;
    private javax.swing.JLabel LayerWU5;
    private javax.swing.JLabel LayerWU6;
    private javax.swing.JLabel LayerWU7;
    private javax.swing.JLabel LayerWU8;
    private javax.swing.JLabel LayerWU9;
    private javax.swing.JButton MoveButton;
    private javax.swing.JTextField Name;
    private javax.swing.JLabel NameLabel;
    private javax.swing.JLabel Notification;
    private javax.swing.JButton OkButton;
    private javax.swing.JLabel Power;
    private javax.swing.JLabel PowerLabel;
    private javax.swing.JRadioButton Private;
    private javax.swing.JRadioButton Public;
    private javax.swing.JLabel RD1_1;
    private javax.swing.JLabel RD1_2;
    private javax.swing.JLabel RD1_3;
    private javax.swing.JLabel RD1_4;
    private javax.swing.JLabel RD1_5;
    private javax.swing.JLabel RD1_6;
    private javax.swing.JLabel RD1_7;
    private javax.swing.JLabel RD1_8;
    private javax.swing.JLabel RD2_1;
    private javax.swing.JLabel RD2_2;
    private javax.swing.JLabel RD2_3;
    private javax.swing.JLabel RD2_4;
    private javax.swing.JLabel RF1;
    private javax.swing.JLabel RF2;
    private javax.swing.JLabel RF3;
    private javax.swing.JLabel RF4;
    private javax.swing.JLabel RO1;
    private javax.swing.JLabel RO1Selected;
    private javax.swing.JLabel RO2;
    private javax.swing.JLabel RO2Selected;
    private javax.swing.JLabel RO3;
    private javax.swing.JLabel RO3Selected;
    private javax.swing.JLabel RO4;
    private javax.swing.JLabel RO4Selected;
    private javax.swing.JLabel RO5;
    private javax.swing.JLabel RO5Selected;
    private javax.swing.JLabel RO6;
    private javax.swing.JLabel RO6Selected;
    private javax.swing.JLabel RO7;
    private javax.swing.JLabel RO7Selected;
    private javax.swing.JLabel RO8;
    private javax.swing.JLabel RO8Selected;
    private javax.swing.JLabel Range;
    private javax.swing.JLabel RangeLabel;
    private javax.swing.JButton SendButton;
    private javax.swing.JLabel Speed;
    private javax.swing.JLabel SpeedLabel;
    private javax.swing.JPanel Stats;
    private javax.swing.JLabel StatsLabel;
    private javax.swing.JButton UpgradePowerButton;
    private javax.swing.JButton UpgradeRangeButton;
    private javax.swing.JButton UpgradeSpeedButton;
    private javax.swing.JLabel WD1;
    private javax.swing.JLabel WD10;
    private javax.swing.JLabel WD11;
    private javax.swing.JLabel WD12;
    private javax.swing.JLabel WD13;
    private javax.swing.JLabel WD14;
    private javax.swing.JLabel WD15;
    private javax.swing.JLabel WD2;
    private javax.swing.JLabel WD3;
    private javax.swing.JLabel WD4;
    private javax.swing.JLabel WD5;
    private javax.swing.JLabel WD6;
    private javax.swing.JLabel WD7;
    private javax.swing.JLabel WD8;
    private javax.swing.JLabel WD9;
    private javax.swing.JLabel WU1;
    private javax.swing.JLabel WU10;
    private javax.swing.JLabel WU11;
    private javax.swing.JLabel WU12;
    private javax.swing.JLabel WU13;
    private javax.swing.JLabel WU14;
    private javax.swing.JLabel WU15;
    private javax.swing.JLabel WU2;
    private javax.swing.JLabel WU3;
    private javax.swing.JLabel WU4;
    private javax.swing.JLabel WU5;
    private javax.swing.JLabel WU6;
    private javax.swing.JLabel WU7;
    private javax.swing.JLabel WU8;
    private javax.swing.JLabel WU9;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JLabel chatLabel;
    private javax.swing.JLabel gold;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JPanel map;
    private javax.swing.JTextField message;
    private javax.swing.JLabel test;
    private javax.swing.JLabel time;
    private javax.swing.JLabel turn;
    // End of variables declaration//GEN-END:variables

}
